<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
  <div id="app">
    <a href="#">1</a>
    <a href="#">2</a>
    <a href="#">3</a>
  </div>

  <script>
    app.addEventListener('click',function (e) {
      console.log(e.target.nodeName==='A');
    })
  </script>
</body>
</html>
